import App from './App'
// #ifndef VUE3
import Vue from 'vue'
//import store from './store'
Vue.config.productionTip = false

// 判断是否是平板
uni.getSystemInfo({
	success: (res)=>{
		//console.log("屏幕尺寸：", res.windowWidth, res.windowHeight)
		if(res.windowWidth > 500){
			Vue.prototype.pad = true;
		}else{
			Vue.prototype.pad = false;
		}
	}
});
import reqUrl from "./common/reqUrl"
Vue.prototype.serverUrl = reqUrl

Vue.prototype.defHead = 'https://hxy2022-1309823386.cos.ap-beijing.myqcloud.com/userHead/default_head.png';

import regX from './common/regX'
Vue.prototype.regX = regX

// import request from "./common/request";
// Vue.prototype.$http = request

import User from "./common/user"
Vue.prototype.User = User

import config from "./common/config.js"
Vue.prototype.config = config

import util from './common/util.js'
Vue.prototype.util = util

import crypto from './common/crypto.js'
Vue.prototype.crypto = crypto;

Vue.prototype.limit = 15;


Vue.prototype.zhuXueServer = 'https://www.zhu-xue.cn';

//Vue.prototype.$store = store;

App.mpType = 'app'
const app = new Vue({
	//store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif